package com.alumni_circle.core.utils;

import java.util.List;

/**
 * @author 龙斌
 * @since 2020-07-03 11:44
 *
 * 判断是否有空数据
 */
public class ObjectUtils {

    /**
     * 判断对象是否为空
     * @param obj 对象
     * @return
     */
    public static boolean isNull(Object obj) {
        return (null == obj);
    }

    /**
     * 判断数组是否为空
     * @param list
     * @return
     */
    public static <T> boolean isNull(List<T> list) {
        return (null == list || list.size() == 0);
    }

}
